import java.util.Scanner;

/**
 * Created by dell on 2017/8/18.
 */
public class pp41 {
    public static void main(String[] args){
        int year;
        Scanner scan = new Scanner(System.in);
        System.out.println("Enter the year");
        while (true){
            year =scan.nextInt();
            int num1 = year % 4;
            int num2 = year % 100;
            int num3 = year % 400;
            if (year<1582){
                System.out.println("Error,please enter a number bigger than 1582");}
            else
                if (num1 ==0 ||num2 ==0 &&num3 ==0)
            {
                    System.out.println("OK");}
                else
                {
                            System.out.println("Try again");
                        }





        }
    }
}
